// 引入vue

import Vue from 'vue'
// 引入vuex
import vuex, { Store } from 'vuex'
// 使用插件
Vue.use(vuex)

import Home from './modules/home'
import Search from './modules/search'
import Detail from './modules/detail'
import Usercart from './modules/usercart'
import User from './modules/user'
import Pay from './modules/pay'


// 创建并暴露vuex对象
export default new Store({
  modules: {
    Home,
    Search,
    Detail,
    Usercart,
    User,
    Pay
  }
})


